package com.luban;

import com.luban.service.MemberService;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/*
	源码编译
	idea juint 运行报错
		https://blog.csdn.net/qq_41827511/article/details/104746480
	CoroutinesUtils 报错  ctrl+ alt + shift + s,  + java, 选择 下面的jar包，添加进去， 因为每次build后，这个jar包都不翼而飞了。
		D:\workplace\spring-framework5.2\spring-core\kotlin-coroutines\build\libs\kotlin-coroutines-5.3.0-SNAPSHOT.jar
		https://blog.csdn.net/gooaaee/article/details/104437902

	为spring-aspect 工程添加Facets属性  https://blog.csdn.net/s_156/article/details/107233811

 */


public class MyApplication {

	public static void main(String[] args) {

		System.out.println("111111111");
		ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
		MemberService memberService = (MemberService) ac.getBean("memberService");
		System.out.println("memberService： "+ memberService);
	}

	// idea juint 运行报错
	@Test
	public void t1(){
		System.out.println("t1......");
		ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
		MemberService memberService = (MemberService) ac.getBean("memberService");
		System.out.println("memberService： "+ memberService);
	}


}
